PHP

How to print the version of CGI used by the webserver in PHP | PHP program

How to print the version of CGI used by the webserver in PHP | PHP program

How to print the version of CGI used by the webserver in PHP | PHP program

We will use $_SERVER['GATEWAY_INTERFACE'] superglobal to get the version of Common Gateway Interface (CGI) used by the webserver.

<?php



$version = $_SERVER['GATEWAY_INTERFACE'];

printf("CGI Version: %s<br>", $version);
?>
TutorialsLink Curator

This is an official account managed by the team TutorialsLink Community